package campus.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CashExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CashExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCIdIsNull() {
            addCriterion("c_id is null");
            return (Criteria) this;
        }

        public Criteria andCIdIsNotNull() {
            addCriterion("c_id is not null");
            return (Criteria) this;
        }

        public Criteria andCIdEqualTo(String value) {
            addCriterion("c_id =", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotEqualTo(String value) {
            addCriterion("c_id <>", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdGreaterThan(String value) {
            addCriterion("c_id >", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdGreaterThanOrEqualTo(String value) {
            addCriterion("c_id >=", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdLessThan(String value) {
            addCriterion("c_id <", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdLessThanOrEqualTo(String value) {
            addCriterion("c_id <=", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdLike(String value) {
            addCriterion("c_id like", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotLike(String value) {
            addCriterion("c_id not like", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdIn(List<String> values) {
            addCriterion("c_id in", values, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotIn(List<String> values) {
            addCriterion("c_id not in", values, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdBetween(String value1, String value2) {
            addCriterion("c_id between", value1, value2, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotBetween(String value1, String value2) {
            addCriterion("c_id not between", value1, value2, "cId");
            return (Criteria) this;
        }

        public Criteria andCCdateIsNull() {
            addCriterion("c_cdate is null");
            return (Criteria) this;
        }

        public Criteria andCCdateIsNotNull() {
            addCriterion("c_cdate is not null");
            return (Criteria) this;
        }

        public Criteria andCCdateEqualTo(Date value) {
            addCriterion("c_cdate =", value, "cCdate");
            return (Criteria) this;
        }

        public Criteria andCCdateNotEqualTo(Date value) {
            addCriterion("c_cdate <>", value, "cCdate");
            return (Criteria) this;
        }

        public Criteria andCCdateGreaterThan(Date value) {
            addCriterion("c_cdate >", value, "cCdate");
            return (Criteria) this;
        }

        public Criteria andCCdateGreaterThanOrEqualTo(Date value) {
            addCriterion("c_cdate >=", value, "cCdate");
            return (Criteria) this;
        }

        public Criteria andCCdateLessThan(Date value) {
            addCriterion("c_cdate <", value, "cCdate");
            return (Criteria) this;
        }

        public Criteria andCCdateLessThanOrEqualTo(Date value) {
            addCriterion("c_cdate <=", value, "cCdate");
            return (Criteria) this;
        }

        public Criteria andCCdateIn(List<Date> values) {
            addCriterion("c_cdate in", values, "cCdate");
            return (Criteria) this;
        }

        public Criteria andCCdateNotIn(List<Date> values) {
            addCriterion("c_cdate not in", values, "cCdate");
            return (Criteria) this;
        }

        public Criteria andCCdateBetween(Date value1, Date value2) {
            addCriterion("c_cdate between", value1, value2, "cCdate");
            return (Criteria) this;
        }

        public Criteria andCCdateNotBetween(Date value1, Date value2) {
            addCriterion("c_cdate not between", value1, value2, "cCdate");
            return (Criteria) this;
        }

        public Criteria andCAbstractIsNull() {
            addCriterion("c_abstract is null");
            return (Criteria) this;
        }

        public Criteria andCAbstractIsNotNull() {
            addCriterion("c_abstract is not null");
            return (Criteria) this;
        }

        public Criteria andCAbstractEqualTo(String value) {
            addCriterion("c_abstract =", value, "cAbstract");
            return (Criteria) this;
        }

        public Criteria andCAbstractNotEqualTo(String value) {
            addCriterion("c_abstract <>", value, "cAbstract");
            return (Criteria) this;
        }

        public Criteria andCAbstractGreaterThan(String value) {
            addCriterion("c_abstract >", value, "cAbstract");
            return (Criteria) this;
        }

        public Criteria andCAbstractGreaterThanOrEqualTo(String value) {
            addCriterion("c_abstract >=", value, "cAbstract");
            return (Criteria) this;
        }

        public Criteria andCAbstractLessThan(String value) {
            addCriterion("c_abstract <", value, "cAbstract");
            return (Criteria) this;
        }

        public Criteria andCAbstractLessThanOrEqualTo(String value) {
            addCriterion("c_abstract <=", value, "cAbstract");
            return (Criteria) this;
        }

        public Criteria andCAbstractLike(String value) {
            addCriterion("c_abstract like", value, "cAbstract");
            return (Criteria) this;
        }

        public Criteria andCAbstractNotLike(String value) {
            addCriterion("c_abstract not like", value, "cAbstract");
            return (Criteria) this;
        }

        public Criteria andCAbstractIn(List<String> values) {
            addCriterion("c_abstract in", values, "cAbstract");
            return (Criteria) this;
        }

        public Criteria andCAbstractNotIn(List<String> values) {
            addCriterion("c_abstract not in", values, "cAbstract");
            return (Criteria) this;
        }

        public Criteria andCAbstractBetween(String value1, String value2) {
            addCriterion("c_abstract between", value1, value2, "cAbstract");
            return (Criteria) this;
        }

        public Criteria andCAbstractNotBetween(String value1, String value2) {
            addCriterion("c_abstract not between", value1, value2, "cAbstract");
            return (Criteria) this;
        }

        public Criteria andCTypeIsNull() {
            addCriterion("c_type is null");
            return (Criteria) this;
        }

        public Criteria andCTypeIsNotNull() {
            addCriterion("c_type is not null");
            return (Criteria) this;
        }

        public Criteria andCTypeEqualTo(String value) {
            addCriterion("c_type =", value, "cType");
            return (Criteria) this;
        }

        public Criteria andCTypeNotEqualTo(String value) {
            addCriterion("c_type <>", value, "cType");
            return (Criteria) this;
        }

        public Criteria andCTypeGreaterThan(String value) {
            addCriterion("c_type >", value, "cType");
            return (Criteria) this;
        }

        public Criteria andCTypeGreaterThanOrEqualTo(String value) {
            addCriterion("c_type >=", value, "cType");
            return (Criteria) this;
        }

        public Criteria andCTypeLessThan(String value) {
            addCriterion("c_type <", value, "cType");
            return (Criteria) this;
        }

        public Criteria andCTypeLessThanOrEqualTo(String value) {
            addCriterion("c_type <=", value, "cType");
            return (Criteria) this;
        }

        public Criteria andCTypeLike(String value) {
            addCriterion("c_type like", value, "cType");
            return (Criteria) this;
        }

        public Criteria andCTypeNotLike(String value) {
            addCriterion("c_type not like", value, "cType");
            return (Criteria) this;
        }

        public Criteria andCTypeIn(List<String> values) {
            addCriterion("c_type in", values, "cType");
            return (Criteria) this;
        }

        public Criteria andCTypeNotIn(List<String> values) {
            addCriterion("c_type not in", values, "cType");
            return (Criteria) this;
        }

        public Criteria andCTypeBetween(String value1, String value2) {
            addCriterion("c_type between", value1, value2, "cType");
            return (Criteria) this;
        }

        public Criteria andCTypeNotBetween(String value1, String value2) {
            addCriterion("c_type not between", value1, value2, "cType");
            return (Criteria) this;
        }

        public Criteria andCIncomeIsNull() {
            addCriterion("c_income is null");
            return (Criteria) this;
        }

        public Criteria andCIncomeIsNotNull() {
            addCriterion("c_income is not null");
            return (Criteria) this;
        }

        public Criteria andCIncomeEqualTo(String value) {
            addCriterion("c_income =", value, "cIncome");
            return (Criteria) this;
        }

        public Criteria andCIncomeNotEqualTo(String value) {
            addCriterion("c_income <>", value, "cIncome");
            return (Criteria) this;
        }

        public Criteria andCIncomeGreaterThan(String value) {
            addCriterion("c_income >", value, "cIncome");
            return (Criteria) this;
        }

        public Criteria andCIncomeGreaterThanOrEqualTo(String value) {
            addCriterion("c_income >=", value, "cIncome");
            return (Criteria) this;
        }

        public Criteria andCIncomeLessThan(String value) {
            addCriterion("c_income <", value, "cIncome");
            return (Criteria) this;
        }

        public Criteria andCIncomeLessThanOrEqualTo(String value) {
            addCriterion("c_income <=", value, "cIncome");
            return (Criteria) this;
        }

        public Criteria andCIncomeLike(String value) {
            addCriterion("c_income like", value, "cIncome");
            return (Criteria) this;
        }

        public Criteria andCIncomeNotLike(String value) {
            addCriterion("c_income not like", value, "cIncome");
            return (Criteria) this;
        }

        public Criteria andCIncomeIn(List<String> values) {
            addCriterion("c_income in", values, "cIncome");
            return (Criteria) this;
        }

        public Criteria andCIncomeNotIn(List<String> values) {
            addCriterion("c_income not in", values, "cIncome");
            return (Criteria) this;
        }

        public Criteria andCIncomeBetween(String value1, String value2) {
            addCriterion("c_income between", value1, value2, "cIncome");
            return (Criteria) this;
        }

        public Criteria andCIncomeNotBetween(String value1, String value2) {
            addCriterion("c_income not between", value1, value2, "cIncome");
            return (Criteria) this;
        }

        public Criteria andCSpendingIsNull() {
            addCriterion("c_spending is null");
            return (Criteria) this;
        }

        public Criteria andCSpendingIsNotNull() {
            addCriterion("c_spending is not null");
            return (Criteria) this;
        }

        public Criteria andCSpendingEqualTo(String value) {
            addCriterion("c_spending =", value, "cSpending");
            return (Criteria) this;
        }

        public Criteria andCSpendingNotEqualTo(String value) {
            addCriterion("c_spending <>", value, "cSpending");
            return (Criteria) this;
        }

        public Criteria andCSpendingGreaterThan(String value) {
            addCriterion("c_spending >", value, "cSpending");
            return (Criteria) this;
        }

        public Criteria andCSpendingGreaterThanOrEqualTo(String value) {
            addCriterion("c_spending >=", value, "cSpending");
            return (Criteria) this;
        }

        public Criteria andCSpendingLessThan(String value) {
            addCriterion("c_spending <", value, "cSpending");
            return (Criteria) this;
        }

        public Criteria andCSpendingLessThanOrEqualTo(String value) {
            addCriterion("c_spending <=", value, "cSpending");
            return (Criteria) this;
        }

        public Criteria andCSpendingLike(String value) {
            addCriterion("c_spending like", value, "cSpending");
            return (Criteria) this;
        }

        public Criteria andCSpendingNotLike(String value) {
            addCriterion("c_spending not like", value, "cSpending");
            return (Criteria) this;
        }

        public Criteria andCSpendingIn(List<String> values) {
            addCriterion("c_spending in", values, "cSpending");
            return (Criteria) this;
        }

        public Criteria andCSpendingNotIn(List<String> values) {
            addCriterion("c_spending not in", values, "cSpending");
            return (Criteria) this;
        }

        public Criteria andCSpendingBetween(String value1, String value2) {
            addCriterion("c_spending between", value1, value2, "cSpending");
            return (Criteria) this;
        }

        public Criteria andCSpendingNotBetween(String value1, String value2) {
            addCriterion("c_spending not between", value1, value2, "cSpending");
            return (Criteria) this;
        }

        public Criteria andCBalanceIsNull() {
            addCriterion("c_balance is null");
            return (Criteria) this;
        }

        public Criteria andCBalanceIsNotNull() {
            addCriterion("c_balance is not null");
            return (Criteria) this;
        }

        public Criteria andCBalanceEqualTo(String value) {
            addCriterion("c_balance =", value, "cBalance");
            return (Criteria) this;
        }

        public Criteria andCBalanceNotEqualTo(String value) {
            addCriterion("c_balance <>", value, "cBalance");
            return (Criteria) this;
        }

        public Criteria andCBalanceGreaterThan(String value) {
            addCriterion("c_balance >", value, "cBalance");
            return (Criteria) this;
        }

        public Criteria andCBalanceGreaterThanOrEqualTo(String value) {
            addCriterion("c_balance >=", value, "cBalance");
            return (Criteria) this;
        }

        public Criteria andCBalanceLessThan(String value) {
            addCriterion("c_balance <", value, "cBalance");
            return (Criteria) this;
        }

        public Criteria andCBalanceLessThanOrEqualTo(String value) {
            addCriterion("c_balance <=", value, "cBalance");
            return (Criteria) this;
        }

        public Criteria andCBalanceLike(String value) {
            addCriterion("c_balance like", value, "cBalance");
            return (Criteria) this;
        }

        public Criteria andCBalanceNotLike(String value) {
            addCriterion("c_balance not like", value, "cBalance");
            return (Criteria) this;
        }

        public Criteria andCBalanceIn(List<String> values) {
            addCriterion("c_balance in", values, "cBalance");
            return (Criteria) this;
        }

        public Criteria andCBalanceNotIn(List<String> values) {
            addCriterion("c_balance not in", values, "cBalance");
            return (Criteria) this;
        }

        public Criteria andCBalanceBetween(String value1, String value2) {
            addCriterion("c_balance between", value1, value2, "cBalance");
            return (Criteria) this;
        }

        public Criteria andCBalanceNotBetween(String value1, String value2) {
            addCriterion("c_balance not between", value1, value2, "cBalance");
            return (Criteria) this;
        }

        public Criteria andCCredentialsIdIsNull() {
            addCriterion("c_credentials_id is null");
            return (Criteria) this;
        }

        public Criteria andCCredentialsIdIsNotNull() {
            addCriterion("c_credentials_id is not null");
            return (Criteria) this;
        }

        public Criteria andCCredentialsIdEqualTo(Integer value) {
            addCriterion("c_credentials_id =", value, "cCredentialsId");
            return (Criteria) this;
        }

        public Criteria andCCredentialsIdNotEqualTo(Integer value) {
            addCriterion("c_credentials_id <>", value, "cCredentialsId");
            return (Criteria) this;
        }

        public Criteria andCCredentialsIdGreaterThan(Integer value) {
            addCriterion("c_credentials_id >", value, "cCredentialsId");
            return (Criteria) this;
        }

        public Criteria andCCredentialsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("c_credentials_id >=", value, "cCredentialsId");
            return (Criteria) this;
        }

        public Criteria andCCredentialsIdLessThan(Integer value) {
            addCriterion("c_credentials_id <", value, "cCredentialsId");
            return (Criteria) this;
        }

        public Criteria andCCredentialsIdLessThanOrEqualTo(Integer value) {
            addCriterion("c_credentials_id <=", value, "cCredentialsId");
            return (Criteria) this;
        }

        public Criteria andCCredentialsIdIn(List<Integer> values) {
            addCriterion("c_credentials_id in", values, "cCredentialsId");
            return (Criteria) this;
        }

        public Criteria andCCredentialsIdNotIn(List<Integer> values) {
            addCriterion("c_credentials_id not in", values, "cCredentialsId");
            return (Criteria) this;
        }

        public Criteria andCCredentialsIdBetween(Integer value1, Integer value2) {
            addCriterion("c_credentials_id between", value1, value2, "cCredentialsId");
            return (Criteria) this;
        }

        public Criteria andCCredentialsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("c_credentials_id not between", value1, value2, "cCredentialsId");
            return (Criteria) this;
        }

        public Criteria andCStatusIsNull() {
            addCriterion("c_status is null");
            return (Criteria) this;
        }

        public Criteria andCStatusIsNotNull() {
            addCriterion("c_status is not null");
            return (Criteria) this;
        }

        public Criteria andCStatusEqualTo(String value) {
            addCriterion("c_status =", value, "cStatus");
            return (Criteria) this;
        }

        public Criteria andCStatusNotEqualTo(String value) {
            addCriterion("c_status <>", value, "cStatus");
            return (Criteria) this;
        }

        public Criteria andCStatusGreaterThan(String value) {
            addCriterion("c_status >", value, "cStatus");
            return (Criteria) this;
        }

        public Criteria andCStatusGreaterThanOrEqualTo(String value) {
            addCriterion("c_status >=", value, "cStatus");
            return (Criteria) this;
        }

        public Criteria andCStatusLessThan(String value) {
            addCriterion("c_status <", value, "cStatus");
            return (Criteria) this;
        }

        public Criteria andCStatusLessThanOrEqualTo(String value) {
            addCriterion("c_status <=", value, "cStatus");
            return (Criteria) this;
        }

        public Criteria andCStatusLike(String value) {
            addCriterion("c_status like", value, "cStatus");
            return (Criteria) this;
        }

        public Criteria andCStatusNotLike(String value) {
            addCriterion("c_status not like", value, "cStatus");
            return (Criteria) this;
        }

        public Criteria andCStatusIn(List<String> values) {
            addCriterion("c_status in", values, "cStatus");
            return (Criteria) this;
        }

        public Criteria andCStatusNotIn(List<String> values) {
            addCriterion("c_status not in", values, "cStatus");
            return (Criteria) this;
        }

        public Criteria andCStatusBetween(String value1, String value2) {
            addCriterion("c_status between", value1, value2, "cStatus");
            return (Criteria) this;
        }

        public Criteria andCStatusNotBetween(String value1, String value2) {
            addCriterion("c_status not between", value1, value2, "cStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}